<?php
$this->Validation->rules('User', array('formId' => 'UserEditForm'));
?>

<div>
    <?php echo $this->Form->create('User', array('action' => 'edit')); ?>
    <fieldset>
        <div class="titulo">
            <div>Datos del Usuario</div>
        </div>
        
        <?php
        echo $this->Form->input('username');
        echo $this->Form->input('password');
        echo $this->Form->input('sector_id', array('empty' => ''));
        echo $this->Form->input('email');
        echo $this->Form->input('rol_id', array('empty' => ''));
        echo $this->Form->input('id', array('type' => 'hidden'));
        ?>
    </fieldset>

    <?php echo $this->Form->end(__('Enviar')); ?>
</div>

<div id="dialog-modal-errores"></div>